package com.westos.spring.wenjian;

import java.sql.ResultSet;
import java.util.List;

import com.mchange.v2.c3p0.ComboPooledDataSource;
import com.westos.spring.util.DBUtil;

public class Client2 {
	public static void main(String[] args) {
		ComboPooledDataSource ds = DBUtil.getCPDS();
		ResultSetListImpl rsl = new ResultSetListImpl();
		ResultSet rs = rsl.getresultset(ds);
		List<Object> list = rsl.resultsettolist(rs, Student.class);
		System.out.println(list);
		
	}
}
